import App from './App'
// import uvUI from '@/uni_modules/uv-ui-tools'
import uviewPlus from '@/uni_modules/uview-plus'

// import LoginPopup from '@/components/login-popup/loginPopup.vue'
// import loginMixin from '@/mixins/login'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
App.use(uvUI)

// 注册全局组件
// Vue.component('login-popup', LoginPopup)
// 注册全局混入
// Vue.mixin(loginMixin)

const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif



// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
  return {
    app
  }
}
// #endif